home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / DELPHI32 / BOXES / HISTORY / EXAMPLE.ZIP / hcbtest1.pas < prev   
Pascal/Delphi Source File  |  1996-08-13  |  1KB  |  46 lines

  1. unit Hcbtest1;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils,  Windows, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, HstCbo, StdCtrls, ExtCtrls;
  8.  
  9. type
  10.   TfrmTestHistoryComboBox = class(TForm)
  11.     btRead: TButton;
  12.     btWrite: TButton;
  13.     Bevel1: TBevel;
  14.     Label1: TLabel;
  15.     Label2: TLabel;
  16.     Label3: TLabel;
  17.     HistoryComboBox1: THistoryComboBox;
  18.     procedure btReadClick(Sender: TObject);
  19.     procedure btWriteClick(Sender: TObject);
  20.   private
  21.     { Private-Deklarationen }
  22.   public
  23.     { Public-Deklarationen }
  24.   end;
  25.  
  26. var
  27.   frmTestHistoryComboBox: TfrmTestHistoryComboBox;
  28.  
  29. implementation
  30.  
  31. {$R *.DFM}
  32.  
  33. procedure TfrmTestHistoryComboBox.btReadClick(Sender: TObject);
  34. begin
  35.   HistoryComboBox1.ReadRegistry;
  36.   ShowMessage('HistoryComboBox filled with information from Registry!');
  37. end;
  38.  
  39. procedure TfrmTestHistoryComboBox.btWriteClick(Sender: TObject);
  40. begin
  41.   HistoryComboBox1.WriteRegistry;
  42.   ShowMessage('HistoryComboBox and Registry updated with information from HistoryComboBox!');
  43. end;
  44.  
  45. end.
  46.